<style>
    #obj-update {
        padding: 20px 25px 25px 0;
    }

    #obj-update .layui-treeSelect .ztree li a, .ztree li span {
        margin: 0 0 2px 3px !important;
    }
</style>
<div class="layui-fluid" id="obj-update">
    <form class="layui-form" action="" lay-filter="obj-update-form">
                        <div class="layui-form-item febs-hide">
                    <label class="layui-form-label febs-form-item-require">记录id：</label>
                    <div class="layui-input-block">
                        <input type="text" name="id" data-th-value="${obj.id}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">数据类型0-事项 1-部门：</label>
                    <div class="layui-input-block">
                        <input type="text" name="dataType" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">：</label>
                    <div class="layui-input-block">
                        <input type="text" name="item" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">线上业务量：</label>
                    <div class="layui-input-block">
                        <input type="text" name="onlineBussCount" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">线下业务量：</label>
                    <div class="layui-input-block">
                        <input type="text" name="underlineBussCount" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">线下业务量-大厅：</label>
                    <div class="layui-input-block">
                        <input type="text" name="underlineHall" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">线下业务量-分厅：</label>
                    <div class="layui-input-block">
                        <input type="text" name="underlineSubHall" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">邮寄业务量(仅限数据类型为depart)：</label>
                    <div class="layui-input-block">
                        <input type="text" name="seekBussCount" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">邮寄业务量(仅限数据类型为depart)：</label>
                    <div class="layui-input-block">
                        <input type="text" name="mailBussCount" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">创建时间：</label>
                    <div class="layui-input-block">
                        <input type="text" name="createTime" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">业务时间：</label>
                    <div class="layui-input-block">
                        <input type="text" name="bussTime" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">创建人：</label>
                    <div class="layui-input-block">
                        <input type="text" name="createBy" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label febs-form-item-require">是否删除：</label>
                    <div class="layui-input-block">
                        <input type="text" name="isDel" autocomplete="off" class="layui-input">
                    </div>
                </div>
            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="obj-update-form-submit" id="submit"></button>
            </div>
    </form>
</div>

<script data-th-inline="javascript">
    layui.use(['febs', 'form', 'formSelects', 'validate', 'treeSelect'], function () {
        var $ = layui.$,
            febs = layui.febs,
            layer = layui.layer,
            form = layui.form,
            obj = [[${obj}]],
            $view = $('#obj-update'),
            validate = layui.validate;

        form.verify(validate);
        form.render();

        initobjValue();


        function initobjValue() {
            form.val("obj-update-form", {
                "id": obj.id,
                "dataType": obj.dataType,
                "item": obj.item,
                "onlineBussCount": obj.onlineBussCount,
                "underlineBussCount": obj.underlineBussCount,
                "underlineHall": obj.underlineHall,
                "underlineSubHall": obj.underlineSubHall,
                "seekBussCount": obj.seekBussCount,
                "mailBussCount": obj.mailBussCount,
                "createTime": obj.createTime,
                "bussTime": obj.bussTime,
                "createBy": obj.createBy,
                "isDel": obj.isDel,
            });
        }

        form.on('submit(obj-update-form-submit)', function (data) {
            if (febs.nativeEqual(data.field, obj)) {
                febs.alert.warn('数据未作任何修改！');
                return false;
            }
            febs.post(ctx + 'hallUpData/update', data.field, function () {
                layer.closeAll();
                febs.alert.success('数据修改成功');
                $('#febs-obj').find('#query').click();
            });
            return false;
        });
    });
</script>